using System;
using OneDayModel.Interfaces;

namespace OneDayModel.PresentationLogic
{
    public interface ICreateAlbumUI
    {
        event EventHandler<CreateAlbumArgs> onCreateAlbum;
        void SetAlbumName(string albumName);
        void CreateAlbum();
        void ShowAlbum(IAlbum album);
        void ShowAlbumNameCantBeEmptyError();
        void ShowAlbumAlreadyExistError(string albumName);
    }

    public class CreateAlbumArgs : EventArgs
    {
        private readonly string albumName;

        public CreateAlbumArgs(string albumName)
        {
            this.albumName = albumName;
        }

        public string AlbumName
        {
            get { return albumName; }
        }
    }
}